package taller2.controller.listeners.selectionMenu;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import taller2.model.graph.algorithms.FordFulkersonApplicator;
import taller2.utils.Constants;
import taller2.view.menus.SelectionMenu;
import taller2.view.windows.MyWindow;
import taller2.view.windows.MainWindows.FordFulkersonMainWindow;

public class FordFulkersonButtonListener implements ActionListener {
        private SelectionMenu menu;
        private MyWindow window; 
        
        public FordFulkersonButtonListener(SelectionMenu menu, MyWindow window) {
                this.menu = menu;
                this.window = window;
        }
       
        public void actionPerformed(ActionEvent event) {
                String path = Constants.pseudocodePath + "pseudoCodigo_FordFulkerson";
                new FordFulkersonMainWindow(window,path,true,new FordFulkersonApplicator());        
                menu.unselectButtons();
        }

}

